package sfy.md.structure.decorate;

public class PeopleDecorate extends People{
    People people;

    public PeopleDecorate(People people){
        this.people = people;

    }
    @Override
    protected String speak() {
         String content = people.getName()+people.getAge()+"穿了一件红色的衣服";
        System.out.println(content);
        return content;
    }
}
